package main

import "fmt"

func main() {
	var num, i, sum float64
	num, i = 21, 50
	sum = 0
	for i > 0 {
		sum += num * i
		i *= 0.5
	}
	fmt.Println(sum)
}
